import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EArenaMode

export class EArenaMode {
  constructor(arg1: int) {
    this.__value = arg1;
    return;
  }

  public value(): int {
    return this.__value;
  }

  public __write(arg1: SerializeStream): void {
    arg1.writeByte(this.__value);
    return;
  }

  public static convert(arg1: int): EArenaMode {
    return new EArenaMode(arg1);
  }

  public static __read(arg1: SerializeStream): EArenaMode {
    var loc1 = arg1.readByte();
    if (loc1 < 0 || loc1 >= 14) {
      throw new MarshalException();
    }
    return EArenaMode.convert(loc1);
  }

  public static /* const */ _EArenaOneVsMulti: int = 10;

  public static /* const */ _EArenaOneVsOne: int = 11;

  public static /* const */ _EArenaOneVsThree: int = 13;

  public /* var */ __value: int;
}
